package com.hopu.blb_erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TShelves {

  @TableId(type = IdType.AUTO)
  private Integer id;
  private String shelvesNo;
  private String menuId;        //仓库编号0
  private String warehouseId;   //库区编号
  private String mainProduct;
  //货位数量
  private Integer totalNum;
  //更改前端时间显示格式
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private java.sql.Timestamp creatTime;
  private boolean status;
  private String remark;


  @TableField(exist = false)
  private TMenu menu;
  @TableField(exist = false)
  private TWarehouse warehouse;
  @TableField(exist = false)
  private List<TCargo> children;

}